package ru.compscicenter.uno.view.events;

import ru.compscicenter.uno.model.Card;
import ru.compscicenter.uno.view.CardImage;

import java.util.EventObject;

public class DropCardEvent extends EventObject {
    private final CardImage cardImage;
    private final Card.Color color;

    public DropCardEvent(Object source, CardImage card, Card.Color color) {
        super(source);
        this.cardImage = card;
        this.color = color;
    }

    public Card getCard() {
        return cardImage.getCard();
    }

    public Card.Color getColor() {
        return color;
    }

	public CardImage getCardImage() {
		return cardImage;
	}
}
